function open_menu() {
	// body...
	var obj1=document.getElementById("sort_menu");
	var obj2=document.getElementById("sj");
	// obj1.style.display="block";
	// obj1.style.height="300px";
	// obj1.width="100%";
	obj2.style.transform="rotate(0deg)";
}

function close_menu() {
	// body...
	var obj1;
	for(var j=1;j<=5;j++){
		obj1=document.getElementById("li_dg"+j);
		obj1.style.backgroundColor=" #C7FFEC";
		obj1.style.color="black";
	}
	var obj2=document.getElementById("sj");
	// obj1.style.display="none";
	// obj2.style.transition="-webkit-transform 0.3s ease-in 0s";
	obj2.style.transform="rotate(90deg)";
}

function display_dgfl(i){

	var li_dg=document.getElementById("li_dg"+i);
	var dgy=document.getElementById("dgy"+i);
	
	for(var j=1;j<=5;j++){
		li_dg=document.getElementById("li_dg"+j);
		li_dg.style.backgroundColor="skyblue";
		li_dg.style.color="black";

		dgy=document.getElementById("dgy"+j);
		dgy.style.display="none";
	}

	dgy=document.getElementById("dgy"+i);
	dgy.style.display="block";
	dgy.style.backgroundColor="#f7f7f7";
	dgy.style.color="#666";
	// dgy.width="820px";

	li_dg=document.getElementById("li_dg"+i);
	li_dg.style.backgroundColor="#f7f7f7";
	li_dg.style.color="#666";

}

function a_hover(a){
	var obj=document.getElementById("li_dg"+a);
		obj.style.backgroundColor="#f7f7f7";
		obj.style.color="#666";
}



/*banner*/
// window.setTimeout("onload_pic()", 0);
// function onload_pic(){
// 	var j;
// 	for(j=1;j<=10;j++){
// 		var obj=document.getElementById("swiper-slide_"+j);
// 		obj.style.background="url(images/banner_"+j+".jpg) center center no-repeat";
// 	}
// }

// phone
var flag_menu=0;

function Onmenu(){
	var obj1=document.getElementById("mMasklay");
	var obj2=document.getElementById("mMenulay");
	if(flag_menu==0) 
	{
		obj1.style.display="block";
		obj2.style.display="block";
		flag_menu=1;
	}
}


// phone




window.onload=init;
var lunBo;
var img_i=1;
function init(){
	// lunBo=window.setInterval("img_change()",3000);
	// window.setTimeout("onload_pic()", 1000);
}




function img_change(){
	img_i++;
	if(img_i==6){
		img_i=1;
	}
	var obj=document.getElementById("banner_img");
	obj.src="images/banner_"+img_i+".jpg";

	var obj1;
	// obj1.src="images/banner_"+b+".jpg";
	for(var j=1;j<=5;j++){
		obj1=document.getElementById("img_li"+j);
		obj1.style.opacity="0.5";
	}

	obj1=document.getElementById("img_li"+img_i);
	obj1.style.opacity="1.5";
}

function img_stop(){
	
	window.clearInterval(lunBo);
	// alert(111);
}
function img_start(){
	lunBo=window.setInterval("img_change()",3000);
	// alert(111);
}

function hover_stop(b){
	img_stop();
	var obj=document.getElementById("banner_img");
	obj.src="images/banner_"+b+".jpg";

	var obj1;
	for(var j=1;j<=5;j++){
		obj1=document.getElementById("img_li"+j);
		obj1.style.opacity="0.5";
	}

	obj1=document.getElementById("img_li"+b);
	obj1.style.opacity="1.5";
}
function hover_start(b){
	
	var obj=document.getElementById("banner_img");
	obj.src="images/banner_"+b+".jpg";
	img_i=b;
	img_start();
	
}



/*banner*/






